package com.anxin.registerManagement.bean.persist;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("专业类")
public class Profession extends CommonData {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("专业id")
    private Integer id;

    @NotBlank(message = "专业名称不能为空")
    @ApiModelProperty("专业名称")
    private String professionName;

    @ApiModelProperty("专业设立年份，以当前日期为准，超过9月算明年")
    private Integer professionBuildYear;

    @NotNull(message = "学院不能为空")
    @ApiModelProperty("学院id")
    private Integer academyId;

}
